public class Service_Request {

    public Service_Request(ApexPages.StandardController controller) {

    }
     public Boolean Type1 = false;
     public Boolean Type2 = false;
     public Boolean Type3 = false;
     public Boolean Type4 = false;
     
     public void setStype1(Boolean b) {
     this.Type1 = b;
     }
     
     public Boolean getStype1() {
     return this.Type1;
     }//Passing input dynamically through another method
     
     
     public Boolean getStype2() {
         return this.Type2;
     }
     
     public void setStype2(Boolean b) {
       this.Type2 = b;  
     }
     
     
     public Boolean getStype3() {
         return this.Type3;
     }
     
     public void setStype3(Boolean b) {
         this.Type3 = b;
     }
     
    public Boolean getStype4() {
         return this.Type4;
     }
     
     public void setStype4(Boolean b) {
         this.Type4 = b;
     }
     
     
     
     
    public PageReference T1() {
        setStype1(true);
        setStype2(false);
        setStype3(false);
        setStype4(false);        
        return null;
    }//displaying only Type1 information and hiding other information
     
      public PageReference T2() {
        setStype2(true);
        setStype1(false);
        setStype3(false);
        setStype4(false);        
        return null;
    }//displaying only Type2 information and hiding other information
     
     public PageReference T3() {
        setStype3(true);
        setStype2(false);
        setStype1(false);
        setStype4(false);        
        return null;
    }//displaying only Type3 information and hiding other information
     
      public PageReference T4() {
        setStype4(true);
        setStype2(false);
        setStype1(false);
        setStype3(false);        
        return null;
    }//displaying only Type4 information and hiding other information
     
     
 }